//
//  WYCAccount.h
//  WYCweibo
//
//  Created by 魏云超 on 15/11/21.
//  Copyright © 2015年 魏云超. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WYCAccount : NSObject<NSCoding>
/*
 "access_token" = "2.002hZJtCYKdpdEa877ba962f0z3XPy";
 "expires_in" = 157679999;
 "remind_in" = 157679999;
 uid = 2647246323;
 */
//令牌
@property (nonatomic, copy) NSString *access_token;
//过期时间 x秒后过期
@property (nonatomic, copy) NSString *expires_in;
//真正过期时间
@property (nonatomic, strong) NSDate *expires_time;
//过期提醒时间
@property (nonatomic, copy) NSString *remind_in;
//用户id
@property (nonatomic, copy) NSString *uid;
//用户头像
@property (nonatomic, copy) NSString *profile_image_url;
+(instancetype)accountWithDict:(NSDictionary *)dict;
//保存授权模型
-(BOOL)save;
//读取授权模型
+(instancetype)accountFromSandbox;
@end
